<?php /* Smarty version Smarty-3.0.8, created on 2015-10-15 10:47:05
         compiled from "tpl/pagination.html" */ ?>
<?php /*%%SmartyHeaderCode:1409777170561f13a92d6a98-40083651%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '1f9452106aa3dcab1349704abb6db2b88d68bdfd' => 
    array (
      0 => 'tpl/pagination.html',
      1 => 1444876874,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1409777170561f13a92d6a98-40083651',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_smarty_tpl->getVariable('pager')->value){?>
	<span class="page-info" >共<?php echo $_smarty_tpl->getVariable('pager')->value['total_count'];?>
项，<?php echo $_smarty_tpl->getVariable('pager')->value['total_page'];?>
页（每页<?php echo $_smarty_tpl->getVariable('pager')->value['page_size'];?>
项）</span>
	<div class="pull-right">	
	<?php if ($_smarty_tpl->getVariable('data_return')->value['s_submit']){?>	
		<ul class="pagination">
			<?php if ($_smarty_tpl->getVariable('pager')->value['current_page']!=$_smarty_tpl->getVariable('pager')->value['first_page']){?>
				<li><a  href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>$_smarty_tpl->getVariable('c')->value,'a'=>$_smarty_tpl->getVariable('a')->value,'s_content'=>$_smarty_tpl->getVariable('data_return')->value['s_content'],'cat_id'=>$_smarty_tpl->getVariable('cat_id')->value,'s_submit'=>1,'page'=>$_smarty_tpl->getVariable('pager')->value['first_page']),$_smarty_tpl);?>
"  alt="<?php echo $_smarty_tpl->getVariable('pager')->value['first_page'];?>
">《</a></li>
			
				<li><a  href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>$_smarty_tpl->getVariable('c')->value,'a'=>$_smarty_tpl->getVariable('a')->value,'s_content'=>$_smarty_tpl->getVariable('data_return')->value['s_content'],'cat_id'=>$_smarty_tpl->getVariable('cat_id')->value,'s_submit'=>1,'page'=>$_smarty_tpl->getVariable('pager')->value['prev_page']),$_smarty_tpl);?>
"  alt="<?php echo $_smarty_tpl->getVariable('pager')->value['prev_page'];?>
">〈</a></li>
				<?php if ($_smarty_tpl->getVariable('pager')->value['current_page']!=$_smarty_tpl->getVariable('pager')->value['first_page']+1){?><li><a>……</a></li><?php }?>
			<?php }?>
			<!--开始循环页码，同时如果循环到当前页则不显示链接-->
			<?php  $_smarty_tpl->tpl_vars['thepage'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('pager')->value['all_pages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['thepage']->key => $_smarty_tpl->tpl_vars['thepage']->value){
?>
			
			<?php if ($_smarty_tpl->tpl_vars['thepage']->value==$_smarty_tpl->getVariable('pager')->value['current_page']-1||$_smarty_tpl->tpl_vars['thepage']->value==$_smarty_tpl->getVariable('pager')->value['current_page']+1){?>
				<li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>$_smarty_tpl->getVariable('c')->value,'a'=>$_smarty_tpl->getVariable('a')->value,'s_content'=>$_smarty_tpl->getVariable('data_return')->value['s_content'],'cat_id'=>$_smarty_tpl->getVariable('cat_id')->value,'s_submit'=>1,'page'=>$_smarty_tpl->tpl_vars['thepage']->value),$_smarty_tpl);?>
" alt="<?php echo $_smarty_tpl->tpl_vars['thepage']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['thepage']->value;?>
</a></li>
			<?php }elseif($_smarty_tpl->tpl_vars['thepage']->value==$_smarty_tpl->getVariable('pager')->value['current_page']){?>
				<li class="active"><a><b><?php echo $_smarty_tpl->tpl_vars['thepage']->value;?>
</b></a></li>
			<?php }?>
			<?php }} ?>
			<!--在当前页不是最后一页的时候，显示下一页和后页-->
			<?php if ($_smarty_tpl->getVariable('pager')->value['current_page']!=$_smarty_tpl->getVariable('pager')->value['last_page']){?>
				<?php if ($_smarty_tpl->getVariable('pager')->value['current_page']!=$_smarty_tpl->getVariable('pager')->value['last_page']-1){?><li><a>……</a></li><?php }?>
				<li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>$_smarty_tpl->getVariable('c')->value,'a'=>$_smarty_tpl->getVariable('a')->value,'s_content'=>$_smarty_tpl->getVariable('data_return')->value['s_content'],'cat_id'=>$_smarty_tpl->getVariable('cat_id')->value,'s_submit'=>1,'page'=>$_smarty_tpl->getVariable('pager')->value['next_page']),$_smarty_tpl);?>
"  alt="<?php echo $_smarty_tpl->getVariable('pager')->value['next_page'];?>
">〉</a></li>
				<li><a  href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>$_smarty_tpl->getVariable('c')->value,'a'=>$_smarty_tpl->getVariable('a')->value,'s_content'=>$_smarty_tpl->getVariable('data_return')->value['s_content'],'cat_id'=>$_smarty_tpl->getVariable('cat_id')->value,'s_submit'=>1,'page'=>$_smarty_tpl->getVariable('pager')->value['last_page']),$_smarty_tpl);?>
" alt="<?php echo $_smarty_tpl->getVariable('pager')->value['last_page'];?>
">》</a></li>
			<?php }?>
		</ul>
	<?php }else{ ?>
		<ul class="pagination">
				<?php if ($_smarty_tpl->getVariable('pager')->value['current_page']!=$_smarty_tpl->getVariable('pager')->value['first_page']){?>
					<li><a  href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>$_smarty_tpl->getVariable('c')->value,'a'=>$_smarty_tpl->getVariable('a')->value,'cat_id'=>$_smarty_tpl->getVariable('cat_id')->value,'page'=>$_smarty_tpl->getVariable('pager')->value['first_page']),$_smarty_tpl);?>
" alt="<?php echo $_smarty_tpl->getVariable('pager')->value['first_page'];?>
">《</a></li>				
					<li><a  href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>$_smarty_tpl->getVariable('c')->value,'a'=>$_smarty_tpl->getVariable('a')->value,'cat_id'=>$_smarty_tpl->getVariable('cat_id')->value,'page'=>$_smarty_tpl->getVariable('pager')->value['prev_page']),$_smarty_tpl);?>
" alt="<?php echo $_smarty_tpl->getVariable('pager')->value['prev_page'];?>
">〈</a></li>
					<?php if ($_smarty_tpl->getVariable('pager')->value['current_page']!=$_smarty_tpl->getVariable('pager')->value['first_page']+1){?><li><a>……</a></li><?php }?>
				<?php }?>
				<!--开始循环页码，同时如果循环到当前页则不显示链接-->
				<?php  $_smarty_tpl->tpl_vars['thepage'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('pager')->value['all_pages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['thepage']->key => $_smarty_tpl->tpl_vars['thepage']->value){
?>
				
				<?php if ($_smarty_tpl->tpl_vars['thepage']->value==$_smarty_tpl->getVariable('pager')->value['current_page']-1||$_smarty_tpl->tpl_vars['thepage']->value==$_smarty_tpl->getVariable('pager')->value['current_page']+1){?>
					<li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>$_smarty_tpl->getVariable('c')->value,'a'=>$_smarty_tpl->getVariable('a')->value,'cat_id'=>$_smarty_tpl->getVariable('cat_id')->value,'page'=>$_smarty_tpl->tpl_vars['thepage']->value),$_smarty_tpl);?>
" alt="<?php echo $_smarty_tpl->tpl_vars['thepage']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['thepage']->value;?>
</a></li>
				<?php }elseif($_smarty_tpl->tpl_vars['thepage']->value==$_smarty_tpl->getVariable('pager')->value['current_page']){?>
					<li class="active"><a><b><?php echo $_smarty_tpl->tpl_vars['thepage']->value;?>
</b></a></li>
				<?php }?>
				<?php }} ?>
				<!--在当前页不是最后一页的时候，显示下一页和后页-->
				<?php if ($_smarty_tpl->getVariable('pager')->value['current_page']!=$_smarty_tpl->getVariable('pager')->value['last_page']){?>
					<?php if ($_smarty_tpl->getVariable('pager')->value['current_page']!=$_smarty_tpl->getVariable('pager')->value['last_page']-1){?><li><a>……</a></li><?php }?>
					<li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>$_smarty_tpl->getVariable('c')->value,'a'=>$_smarty_tpl->getVariable('a')->value,'cat_id'=>$_smarty_tpl->getVariable('cat_id')->value,'page'=>$_smarty_tpl->getVariable('pager')->value['next_page']),$_smarty_tpl);?>
" alt="<?php echo $_smarty_tpl->getVariable('pager')->value['next_page'];?>
">〉</a></li>
					<li><a  href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>$_smarty_tpl->getVariable('c')->value,'a'=>$_smarty_tpl->getVariable('a')->value,'cat_id'=>$_smarty_tpl->getVariable('cat_id')->value,'page'=>$_smarty_tpl->getVariable('pager')->value['last_page']),$_smarty_tpl);?>
" alt="<?php echo $_smarty_tpl->getVariable('pager')->value['last_page'];?>
">》</a></li>
				<?php }?>
		</ul>
	<?php }?>
	</div>
<?php }?>	